package com.imc.beans;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * LoginLog entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "login_log", catalog = "imcdbserver")
public class LoginLog implements java.io.Serializable {

	// Fields

	private Integer id;
	private Integer uid;
	private String name;
	private String loginTime;
	private String ip;
	private Integer port;
	private Integer corpId;

	// Constructors

	/** default constructor */
	public LoginLog() {
	}

	/** full constructor */
	public LoginLog(Integer uid, String name, String loginTime, String ip,
			Integer port, Integer corpId) {
		this.uid = uid;
		this.name = name;
		this.loginTime = loginTime;
		this.ip = ip;
		this.port = port;
		this.corpId = corpId;
	}

	// Property accessors
	@Id
	@GeneratedValue
	@Column(name = "id", unique = true, nullable = false)
	public Integer getId() {
		return this.id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	@Column(name = "uid")
	public Integer getUid() {
		return this.uid;
	}

	public void setUid(Integer uid) {
		this.uid = uid;
	}

	@Column(name = "NAME", length = 20)
	public String getName() {
		return this.name;
	}

	public void setName(String name) {
		this.name = name;
	}

	@Column(name = "login_time", length = 20)
	public String getLoginTime() {
		return this.loginTime;
	}

	public void setLoginTime(String loginTime) {
		this.loginTime = loginTime;
	}

	@Column(name = "ip", length = 20)
	public String getIp() {
		return this.ip;
	}

	public void setIp(String ip) {
		this.ip = ip;
	}

	@Column(name = "PORT")
	public Integer getPort() {
		return this.port;
	}

	public void setPort(Integer port) {
		this.port = port;
	}

	@Column(name = "corp_id")
	public Integer getCorpId() {
		return this.corpId;
	}

	public void setCorpId(Integer corpId) {
		this.corpId = corpId;
	}

}